package com.liaoyifan.core.converter;

import com.alibaba.cloud.nacos.NacosDiscoveryProperties;
import com.liaoyifan.core.properties.NacosProperties;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

@Mapper(config = ConverterConfig.class)
public interface NacosConverter {

    NacosConverter INSTANCE = Mappers.getMapper(NacosConverter.class);

    void toConfig(NacosProperties source, @MappingTarget NacosDiscoveryProperties target);
}
